package org.example.salarysystem.pojo;


import java.time.LocalDate;


public class Teacher {
    private Integer teacherId;     // 教师编号
    private String name;           // 教师姓名
    private String gender;         // 性别（M/F）
    private LocalDate birthDate;   // 出生日期
    private Integer deptId;        // 所属部门编号
    private Integer positionId;    // 职务编号
    private Integer titleId;       // 职称编号

    public Teacher() {
    }

    public Teacher(Integer teacherId, String name, String gender, LocalDate birthDate, Integer deptId, Integer positionId, Integer titleId) {
        this.teacherId = teacherId;
        this.name = name;
        this.gender = gender;
        this.birthDate = birthDate;
        this.deptId = deptId;
        this.positionId = positionId;
        this.titleId = titleId;
    }

    /**
     * 获取
     * @return teacherId
     */
    public Integer getTeacherId() {
        return teacherId;
    }

    /**
     * 设置
     * @param teacherId
     */
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return birthDate
     */
    public LocalDate getBirthDate() {
        return birthDate;
    }

    /**
     * 设置
     * @param birthDate
     */
    public void setBirthDate(LocalDate birthDate) {
        this.birthDate = birthDate;
    }

    /**
     * 获取
     * @return deptId
     */
    public Integer getDeptId() {
        return deptId;
    }

    /**
     * 设置
     * @param deptId
     */
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    /**
     * 获取
     * @return positionId
     */
    public Integer getPositionId() {
        return positionId;
    }

    /**
     * 设置
     * @param positionId
     */
    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    /**
     * 获取
     * @return titleId
     */
    public Integer getTitleId() {
        return titleId;
    }

    /**
     * 设置
     * @param titleId
     */
    public void setTitleId(Integer titleId) {
        this.titleId = titleId;
    }

    public String toString() {
        return "Teacher{teacherId = " + teacherId + ", name = " + name + ", gender = " + gender + ", birthDate = " + birthDate + ", deptId = " + deptId + ", positionId = " + positionId + ", titleId = " + titleId + "}";
    }
}
